<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta property="og:type" content="website">
<meta property="og:title" content="Hexo">
<meta property="og:url" content="http://xgx-wanderer.oschina.io/index.html">
<meta property="og:site_name" content="Hexo">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo">
  
    <link rel="alternate" href="/atom.xml" title="Hexo" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
  

</head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Hexo</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="Flux RSS"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Rechercher"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://xgx-wanderer.oschina.io"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main">
  
    <article id="post-字体图标" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2017/09/10/字体图标/" class="article-date">
  <time datetime="2017-09-10T13:09:43.993Z" itemprop="datePublished">2017-09-10</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2017/09/10/字体图标/">字体图标的那些事</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;今天我在复习boostrap框架的时候，因为boostrap上提供的一些字体图标并不是我想要用的图标，我们日常开发过程中也会遇到很多框架内置的图标并不能满足我们的情况，下面我就说总结一下，如何添加使用自己的字体图标和boostrap上的图标。</p>
<h3 id="一，使用boostrap上的图标"><a href="#一，使用boostrap上的图标" class="headerlink" title="一，使用boostrap上的图标"></a>一，使用boostrap上的图标</h3><p>其实使用其他框架上的字体图标的方法也和boostrap的方法大同小异，都是非常简单的。<br>首先，你要引入他们的css样式，引入样式后，只需要去他们的官网，寻找你想使用的那个字体图标，直接复制字体图标下对应的class类名，就可以了。如：<br><img src="http://image.jiantuku.com/17-9-10/34643739.jpg?attname=file_1505047491777_13466.png&amp;e=1505048410&amp;token=el7kgPgYzpJoB23jrChWJ2gV3HpRl0VCzFn8rKKv:B82S8ifdNKnDMPyGt2PZJurDQh0=" alt="手机字体图标"><br>在html中：<br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&lt;span <span class="class"><span class="keyword">class</span></span>=<span class="string">"glyphicon glyphicon-menu-down"</span>&gt;&lt;/span&gt;</div></pre></td></tr></table></figure></p>
<h3 id="二，使用自己下载的图标"><a href="#二，使用自己下载的图标" class="headerlink" title="二，使用自己下载的图标"></a>二，使用自己下载的图标</h3><p>使用自己下载的字体图标要在css中写入以下代码，无需记忆<br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line">@font-face &#123;</div><div class="line">    font-family: <span class="string">"wjs_font"</span>  <span class="comment">/* anyname what you like */</span>;</div><div class="line">    src:</div><div class="line">    url(../fonts/MiFie-Web-Font.svg) format(<span class="string">'svg'</span>),</div><div class="line">    url(../fonts/MiFie-Web-Font.eot) format(<span class="string">'embedded-opentype'</span>),</div><div class="line">    url(../fonts/MiFie-Web-Font.ttf) format(<span class="string">'truetype'</span>),</div><div class="line">    url(../fonts/MiFie-Web-Font.woff) format(<span class="string">'woff'</span>);</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>font-family：“” 引号里面自己随便起一个字体名称<br>这其中的路径要修改，其他的不需要修改，直接站过来用就可以了。<br>那么有了字体图标以后怎么使用呢？<br>这里推荐在css样式中，定义好，样式，直接在html 便签中添加样式名就可以，这个过程是和boostrap一样的，只不过他已经封装好了，我们只需要拿来用。<br>如：<br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">.wjs_icon&#123;</div><div class="line">  font-family: <span class="string">"wjs_font"</span>;</div><div class="line">&#125;</div><div class="line">.wjs_icon_phone::before&#123;</div><div class="line">      content: <span class="string">"\e908"</span>;</div><div class="line">&#125;</div></pre></td></tr></table></figure></p>
<p>在html中就可以直接引入这两个样式名，就ok啦！<br><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">&lt;span <span class="class"><span class="keyword">class</span></span>=<span class="string">"wjs_icon wjs_icon_phone"</span>&gt;&lt;/span&gt;</div></pre></td></tr></table></figure></p>
<p>下面推荐一个分享字体图标网站的文章：<a href="https://zhuanlan.zhihu.com/p/24711007" target="_blank" rel="external">字体图标网站</a></p>
<p>That’s all ,thank you!!!</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://xgx-wanderer.oschina.io/2017/09/10/字体图标/" data-id="cj7erjus30000skr38wp6nuve" class="article-share-link">Partager</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-About Markdown" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2017/09/08/About Markdown/" class="article-date">
  <time datetime="2017-09-08T01:48:06.781Z" itemprop="datePublished">2017-09-08</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2017/09/08/About Markdown/">About Markdown</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="markdown-语法的简要规则"><a href="#markdown-语法的简要规则" class="headerlink" title="markdown 语法的简要规则"></a>markdown 语法的简要规则</h2><h3 id="1-标题"><a href="#1-标题" class="headerlink" title="1.标题"></a>1.标题</h3><p>‘’#’’表示标题，一级标题： ‘#’ ；二级标题：‘##’；以此类推。</p>
<h3 id="2-列表"><a href="#2-列表" class="headerlink" title="2.列表"></a>2.列表</h3><p>无序列表，只需要在文字前加上‘*’ 或者加上‘-’就可以了<br>有序列表，只需要在文字前加上1. 2. 3. 就可以了(记得要在符号后加空格)<br>1.小红<br>2.小明<br>3.小张  </p>
<ul>
<li>红色</li>
<li>绿色</li>
<li>蓝色<h3 id="3-引用"><a href="#3-引用" class="headerlink" title="3. 引用"></a>3. 引用</h3>如果需要引用一段别处的文字，只需要在文字前加一个&gt;(大于号)即可<blockquote>
<p>这是引用的文字。。。。。</p>
<h3 id="4-插入图片和链接"><a href="#4-插入图片和链接" class="headerlink" title="4. 插入图片和链接"></a>4. 插入图片和链接</h3><p>插入链接和图片的方法非常相似，图片比链接多一个！<br>插入链接：<br><a href="http://baidu.com" target="_blank" rel="external">Baidu</a><br>插入图片：<br><img src="https://timgsa.baidu.com/timg?image&amp;quality=80&amp;size=b9999_10000&amp;sec=1504850536748&amp;di=927db668312a0e6c276a4b8f11bac563&amp;imgtype=0&amp;src=http%3A%2F%2Fimg3.duitang.com%2Fuploads%2Fblog%2F201502%2F26%2F20150226220456_x4Uky.jpeg" alt="Baidu"></p>
<h3 id="5-粗体和斜体"><a href="#5-粗体和斜体" class="headerlink" title="5.粗体和斜体"></a>5.粗体和斜体</h3><p>粗体：用两个<em>号包在一起的就是粗体<br><strong>这是粗体字体</strong><br>斜体：用一个</em>号包在一起的就是斜体<br><em>这是斜体字体</em></p>
<h3 id="6-表格"><a href="#6-表格" class="headerlink" title="6.表格"></a>6.表格</h3><p>表格是比较麻烦的，因此推荐直接直接粘贴复制写好的表格模板，改一下里面对应的内容即可：<br>| Tables        |  Are           | Cool  |<br>| ————- |:————-:| —–:|<br>|col 3 is      | right-aligned | $1600 |<br>| col 2 is      | centered      |   $12 |<br>| zebra stripes | are neat      |    $1 |</p>
<h3 id="7-代码框"><a href="#7-代码框" class="headerlink" title="7.代码框"></a>7.代码框</h3><p>只需要用‘`’号 将代码包起来就可以</p>
<figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">console</span>.log(<span class="keyword">typeof</span> fn)</div><div class="line"><span class="comment">//第一个console.log 打印出的值是function 说明函数在预解析阶段 若出现同名函数和变量，以函数为准</span></div><div class="line"><span class="function"><span class="keyword">function</span> <span class="title">fn</span>(<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="built_in">console</span>.log(<span class="string">'hello world'</span>)</div><div class="line">&#125;</div><div class="line">   <span class="keyword">var</span> fn=<span class="number">123</span></div><div class="line"><span class="built_in">console</span>.log(<span class="keyword">typeof</span> fn)<span class="comment">//第二个console.log打印输出的是number 说明虽然函数在预解析阶段先于变量，但是在执行阶段，函数没有被调用，所以被pass掉了，fn被重新赋值为123，所以打印输出了number类型</span></div></pre></td></tr></table></figure>
</blockquote>
</li>
</ul>
<h3 id="8-分割线"><a href="#8-分割线" class="headerlink" title="8.分割线"></a>8.分割线</h3><p>分割线是三个*<br>下面是条分割线：</p>
<hr>
<hr>
<p>好啦，这就是一些最基本的markdown语法了，剩下的就是以后多加练习了！加油吧，骚年们！！<br>（附上官方语法说明：）<br><a href="http://wowubuntu.com/markdown/#list" target="_blank" rel="external"><em>Markdown 中文版语法说明</em></a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://xgx-wanderer.oschina.io/2017/09/08/About Markdown/" data-id="cj7cp46xk0000d0r3km9mgu50" class="article-share-link">Partager</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-About Function(关于函数)" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2017/08/25/About Function(关于函数)/" class="article-date">
  <time datetime="2017-08-25T12:56:10.278Z" itemprop="datePublished">2017-08-25</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2017/08/25/About Function(关于函数)/">About Function</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="let’s-talk-some-vital-details-of-Finction"><a href="#let’s-talk-some-vital-details-of-Finction" class="headerlink" title="let’s talk some vital details of Finction"></a>let’s talk some vital details of Finction</h2><h3 id="Function-pre-resolution-函数预解析早知道"><a href="#Function-pre-resolution-函数预解析早知道" class="headerlink" title="Function pre-resolution (函数预解析早知道)"></a>Function pre-resolution (函数预解析早知道)</h3><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div></pre></td><td class="code"><pre><div class="line"><span class="built_in">console</span>.log(<span class="keyword">typeof</span> fn)</div><div class="line"><span class="comment">//第一个console.log 打印出的值是function 说明函数在预解析阶段 若出现同名函数和变量，以函数为准</span></div><div class="line"> </div><div class="line"><span class="function"><span class="keyword">function</span> <span class="title">fn</span>(<span class="params"></span>) </span>&#123;</div><div class="line">    <span class="built_in">console</span>.log(<span class="string">'hello world'</span>)</div><div class="line">&#125;</div><div class="line">   <span class="keyword">var</span> fn=<span class="number">123</span></div><div class="line"></div><div class="line"><span class="built_in">console</span>.log(<span class="keyword">typeof</span> fn)<span class="comment">//第二个console.log打印输出的是number 说明虽然函数在预解析阶段先于变量，但是在执行阶段，函数没有被调用，所以被pass掉了，fn被重新赋值为123，所以打印输出了number类型</span></div></pre></td></tr></table></figure>
<h3 id="Function-declaration-and-expression-函数声明与函数表达式"><a href="#Function-declaration-and-expression-函数声明与函数表达式" class="headerlink" title="Function declaration and expression(函数声明与函数表达式)"></a>Function declaration and expression(函数声明与函数表达式)</h3><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div><div class="line">22</div><div class="line">23</div></pre></td><td class="code"><pre><div class="line"><span class="comment">//1.函数声明必须要有名字,函数声明会函数提升，声明前后都可以被调用</span></div><div class="line">    <span class="comment">//2.函数表达式类似于变量赋值，可以没有名字，不会函数提升，执行时，必须在表达式执行之后才可以调用</span></div><div class="line">     <span class="keyword">var</span> condition=<span class="literal">true</span>;</div><div class="line">     <span class="keyword">if</span>(<span class="literal">true</span>)&#123;</div><div class="line">       <span class="function"><span class="keyword">function</span> <span class="title">f1</span>(<span class="params"></span>) </span>&#123;</div><div class="line">           <span class="built_in">console</span>.log(<span class="number">1111</span>)</div><div class="line">       &#125;</div><div class="line">     &#125;<span class="keyword">else</span>&#123;</div><div class="line">       <span class="function"><span class="keyword">function</span> <span class="title">f2</span>(<span class="params"></span>) </span>&#123;</div><div class="line">         <span class="built_in">console</span>.log(<span class="number">2222</span>)</div><div class="line">       &#125;</div><div class="line">     &#125;<span class="comment">//以上代码执行结果在不同浏览器中结果不一致。(在 JavaScript 中，没有块作用域,一些老的浏览器会先进行函数提升)</span></div><div class="line">     <span class="comment">//这种情况就可以用  函数表达式解决，因为函数表达式没有函数提升</span></div><div class="line">     <span class="keyword">var</span> fn;</div><div class="line">     <span class="keyword">if</span>(<span class="literal">true</span>)&#123;</div><div class="line">      fn= <span class="function"><span class="keyword">function</span> (<span class="params"></span>) </span>&#123;</div><div class="line">         <span class="built_in">console</span>.log(<span class="number">3333</span>)</div><div class="line">       &#125;</div><div class="line">     &#125;<span class="keyword">else</span>&#123;</div><div class="line">       fn=<span class="function"><span class="keyword">function</span>(<span class="params"></span>)</span>&#123;</div><div class="line">         <span class="built_in">console</span>.log(<span class="number">4444</span>)</div><div class="line">       &#125;</div><div class="line">     &#125;</div></pre></td></tr></table></figure>
<h3 id="THIS-THIS-THIS-函数内this指向问题"><a href="#THIS-THIS-THIS-函数内this指向问题" class="headerlink" title="THIS! THIS! THIS!(函数内this指向问题)"></a>THIS! THIS! THIS!(函数内this指向问题)</h3><figure class="highlight javascript"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line"><span class="comment">//this 非常难哦 这里大家要好好学习哟！</span></div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/generating.html" target="_blank" rel="external">Generating</a></p>
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">$ hexo deploy</div></pre></td></tr></table></figure>
<p>More info: <a href="https://hexo.io/docs/deployment.html" target="_blank" rel="external">Deployment</a></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://xgx-wanderer.oschina.io/2017/08/25/About Function(关于函数)/" data-id="cj7cp46yh0001d0r3qj8ebw44" class="article-share-link">Partager</a>
      
      
    </footer>
  </div>
  
</article>


  
    <article id="post-first blog" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2017/08/25/first blog/" class="article-date">
  <time datetime="2017-08-24T17:18:35.750Z" itemprop="datePublished">2017-08-25</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 itemprop="name">
      <a class="article-title" href="/2017/08/25/first blog/">My first personal blog!</a>
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="SO-EXCITED"><a href="#SO-EXCITED" class="headerlink" title="SO EXCITED!!"></a>SO EXCITED!!</h3><p>Finally finished building after one night of hard work! EXCITED!!!HAPPY!!<br><img src="http://img0.imgtn.bdimg.com/it/u=4281115181,1846655705&amp;fm=27&amp;gp=0.jpg" alt=""></p>
<h3 id="What-should-my-blog-look-like"><a href="#What-should-my-blog-look-like" class="headerlink" title="What should my blog look like???"></a>What should my blog look like???</h3><p>  I want my blog will be a warm space.Here,not only the cold code code!!but  every of  my live stage and studing process. Sometimes i am a good coder yet, i am a crazy boy who makes fun of all the bad things in life. So, lets build yourself space free professional exciting </p>
<h3 id="What’s-in-it"><a href="#What’s-in-it" class="headerlink" title="What’s in it???"></a>What’s in it???</h3><p>  some stories, some news, of couurs,most of it is code . now, i am stying<br>the knowledge font-end, yet , PHP is my another mountain.</p>
<h3 id="More-info"><a href="#More-info" class="headerlink" title="More info"></a>More info</h3><p>  My English is very poor!! so, this is a good chance that improve English <br>ability  isn\’t it???</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://xgx-wanderer.oschina.io/2017/08/25/first blog/" data-id="cj7cp46yk0002d0r3wvjgi88y" class="article-share-link">Partager</a>
      
      
    </footer>
  </div>
  
</article>


  

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/08/">August 2017</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Articles récents</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2017/09/10/字体图标/">字体图标的那些事</a>
          </li>
        
          <li>
            <a href="/2017/09/08/About Markdown/">About Markdown</a>
          </li>
        
          <li>
            <a href="/2017/08/25/About Function(关于函数)/">About Function</a>
          </li>
        
          <li>
            <a href="/2017/08/25/first blog/">My first personal blog!</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2017 codeDog-xgx<br>
      Propulsé by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>

  </div>
</body>
</html>